import request from '@/utils/request'

// 查询SysTsWorkOrderBi列表
export function listSysTsWorkOrderBi(query) {
  return request({
    url: '/system/SysTsWorkOrderBi/list',
    method: 'get',
    params: query
  })
}

// 查询SysTsWorkOrderBi详细
export function getSysTsWorkOrderBi(year) {
  return request({
    url: '/system/SysTsWorkOrderBi/' + year,
    method: 'get'
  })
}

// 新增SysTsWorkOrderBi
export function addSysTsWorkOrderBi(data) {
  return request({
    url: '/system/SysTsWorkOrderBi',
    method: 'post',
    data: data
  })
}

// 修改SysTsWorkOrderBi
export function updateSysTsWorkOrderBi(data) {
  return request({
    url: '/system/SysTsWorkOrderBi',
    method: 'put',
    data: data
  })
}

// 删除SysTsWorkOrderBi
export function delSysTsWorkOrderBi(year) {
  return request({
    url: '/system/SysTsWorkOrderBi/' + year,
    method: 'delete'
  })
}
